﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_RptDoiChieuCongNoPhaiThu : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvKhachHang")]
        private ADVObjects _AdvKhachHang;
        [AccessedThroughProperty("AdvNhanVien")]
        private ADVObjects _AdvNhanVien;
        [AccessedThroughProperty("AdvTaiKhoan")]
        private ADVAccount _AdvTaiKhoan;
        [AccessedThroughProperty("CboMauBaoCao")]
        private ComboBox _CboMauBaoCao;
        [AccessedThroughProperty("CmdCancel")]
        private Button _CmdCancel;
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label10")]
        private Label _Label10;
        [AccessedThroughProperty("Label11")]
        private Label _Label11;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label16")]
        private Label _Label16;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("Label6")]
        private Label _Label6;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("Label8")]
        private Label _Label8;
        [AccessedThroughProperty("Label9")]
        private Label _Label9;
        [AccessedThroughProperty("TxtCanCu")]
        private TextBox _TxtCanCu;
        [AccessedThroughProperty("TxtDenNgay")]
        private DateTimePicker _TxtDenNgay;
        [AccessedThroughProperty("TxtDienGiai2")]
        private TextBox _TxtDienGiai2;
        [AccessedThroughProperty("TxtDienThoai")]
        private TextBox _TxtDienThoai;
        [AccessedThroughProperty("TxtFax")]
        private TextBox _TxtFax;
        [AccessedThroughProperty("TxtNguoiNhan")]
        private TextBox _TxtNguoiNhan;
        [AccessedThroughProperty("TxtRe")]
        private TextBox _TxtRe;
        [AccessedThroughProperty("TxtRefNo")]
        private TextBox _TxtRefNo;
        [AccessedThroughProperty("TxtTuNgay")]
        private DateTimePicker _TxtTuNgay;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;

        [DebuggerNonUserCode]
        public Frm_RptDoiChieuCongNoPhaiThu()
        {
            base.Load += new EventHandler(this.Frm_RptDoiChieuCongNoPhaiThu_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.InitializeComponent();
        }

        private void AdvKhachHang_ValueChanged(object sender, EventArgs e)
        {
            this.TxtNguoiNhan.Text = "";
            this.TxtDienThoai.Text = "";
            this.TxtFax.Text = "";
            if (LVYModule.ReturnIfNull(this.AdvKhachHang.Value, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                clsDMDoiTuong tuong = new clsDMDoiTuong();
                tuong.Load(this.AdvKhachHang.Value);
                this.TxtDienThoai.Text = tuong.DienThoai;
                this.TxtFax.Text = tuong.Fax;
            }
        }

        private void CmdCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(this.AdvTaiKhoan.Value, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nh\x00e2̣p s\x00f4́ tài khoản!", ""));
                this.AdvTaiKhoan.Focus();
            }
            else if (LVYModule.ReturnIfNull(this.AdvKhachHang.Value, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nh\x00e2̣p khách hàng!", ""));
                this.AdvKhachHang.Focus();
            }
            else
            {
                switch (this.CboMauBaoCao.SelectedIndex)
                {
                    case 0:
                        this.PrintReportMau1();
                        break;

                    case 1:
                        this.PrintReportMau2();
                        break;

                    case 2:
                        this.PrintReportMau3();
                        break;

                    case 3:
                        this.PrintReportMau4();
                        break;
                }
            }
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_RptDoiChieuCongNoPhaiThu_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.TxtTuNgay.Text = "01/" + LVYModule.sRight("00" + Conversions.ToString(DateAndTime.Month(DateAndTime.Today)), 2) + "/" + Conversions.ToString(DateAndTime.Year(DateAndTime.Today));
                this.TxtDenNgay.Text = Strings.Format(DateAndTime.Today, "dd/MM/yyyy");
                this.AdvTaiKhoan.Value = new clsDMTaiKhoan().GetTaiKhoan("131");
                this.CboMauBaoCao.Items.Clear();
                this.CboMauBaoCao.Items.Add(modGeneral.Tranlated("Mẫu số 1", ""));
                this.CboMauBaoCao.Items.Add(modGeneral.Tranlated("Mẫu số 2", ""));
                this.CboMauBaoCao.Items.Add(modGeneral.Tranlated("Mẫu số 3", ""));
                this.CboMauBaoCao.Items.Add(modGeneral.Tranlated("Mẫu số 4", ""));
                this.CboMauBaoCao.SelectedIndex = 3;
                this.TxtCanCu.Text = "Căn cứ phiếu xuất h\x00e0ng v\x00e0 phương thức thanh to\x00e1n của Qu\x00fd c\x00f4ng ty. Đề nghị Qu\x00fd c\x00f4ng ty x\x00e1c nhận số tiền phải trả đến ng\x00e0y " + this.TxtDenNgay.Text + " v\x00e0 sắp xếp thanh to\x00e1n tiền h\x00e0ng cho c\x00f4ng ty ch\x00fang t\x00f4i trong thời gian sớm nhất với chi tiết như sau:";
                this.TxtDienGiai2.Text = "Nếu Qu\x00fd c\x00f4ng ty c\x00f3 bất kỳ sự ch\x00eanh lệch n\x00e0o với số liệu tr\x00ean, xin cung cấp đầy đủ chi tiết cho ch\x00fang t\x00f4i. Mọi chi tiết cần đối chiếu  xin li\x00ean hệ với Ph\x00f2ng Kế To\x00e1n của c\x00f4ng ty ch\x00fang t\x00f4i theo số fax tr\x00ean. \r Đề nghị Qu\x00fd c\x00f4ng ty đối chiếu, x\x00e1c nhận c\x00f4ng nợ v\x00e0 c\x00f3 kế hoạch thanh to\x00e1n cho ch\x00fang t\x00f4i trong thời gian sớm nhất.";
                this.AdvNhanVien.Value = modGeneral.H_USERID;
                this.TxtRe.Text = "Bảng đối chiếu c\x00f4ng nợ đến ng\x00e0y " + this.TxtDenNgay.Text;
            }
        }

        public DataTable GetDataDoiChieu()
        {
            DataTable table;
            IDataParameter[] commandParameters = new IDataParameter[6];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, modGeneral.H_CLIENT);
                commandParameters[1] = DBHelper.createParameter("@TuNgay", DbType.Int64, ParameterDirection.Input, LVYModule.Date2Char(this.TxtTuNgay.Text));
                commandParameters[2] = DBHelper.createParameter("@DenNgay", DbType.Int64, ParameterDirection.Input, LVYModule.Date2Char(this.TxtDenNgay.Text));
                commandParameters[3] = DBHelper.createParameter("@KhoaTaiKhoan", DbType.Int64, ParameterDirection.Input, this.AdvTaiKhoan.Value);
                commandParameters[4] = DBHelper.createParameter("@KhoaDoiTuong", DbType.Int64, ParameterDirection.Input, this.AdvKhachHang.Value);
                commandParameters[5] = DBHelper.createParameter("@Language", DbType.Int64, ParameterDirection.Input, modGeneral.H_LANGUAGE);
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.StoredProcedure, "BH_BC_DoiChieuCongNoPhaiThuChiTiet", commandParameters).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public DataTable GetDataDoiChieuTongHop()
        {
            DataTable table;
            IDataParameter[] commandParameters = new IDataParameter[6];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, modGeneral.H_CLIENT);
                commandParameters[1] = DBHelper.createParameter("@TuNgay", DbType.Int64, ParameterDirection.Input, LVYModule.Date2Char(this.TxtTuNgay.Text));
                commandParameters[2] = DBHelper.createParameter("@DenNgay", DbType.Int64, ParameterDirection.Input, LVYModule.Date2Char(this.TxtDenNgay.Text));
                commandParameters[3] = DBHelper.createParameter("@KhoaTaiKhoan", DbType.Int64, ParameterDirection.Input, this.AdvTaiKhoan.Value);
                commandParameters[4] = DBHelper.createParameter("@KhoaDoiTuong", DbType.Int64, ParameterDirection.Input, this.AdvKhachHang.Value);
                commandParameters[5] = DBHelper.createParameter("@Language", DbType.Int64, ParameterDirection.Input, modGeneral.H_LANGUAGE);
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.StoredProcedure, "BH_BC_DoiChieuCongNoTongHop", commandParameters).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public DataTable GetDataPhanTich()
        {
            DataTable table;
            IDataParameter[] commandParameters = new IDataParameter[4];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, modGeneral.H_CLIENT);
                commandParameters[1] = DBHelper.createParameter("@KhoaDoiTuong", DbType.Int64, ParameterDirection.Input, this.AdvKhachHang.Value);
                commandParameters[2] = DBHelper.createParameter("@KhoaTaiKhoan", DbType.Int64, ParameterDirection.Input, this.AdvTaiKhoan.Value);
                commandParameters[3] = DBHelper.createParameter("@Ngay", DbType.Int64, ParameterDirection.Input, LVYModule.Date2Char(this.TxtDenNgay.Text));
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.StoredProcedure, "BH_BC_PhanTichCongNo", commandParameters).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_RptDoiChieuCongNoPhaiThu));
            this.GroupBox1 = new GroupBox();
            this.TxtDenNgay = new DateTimePicker();
            this.Label11 = new Label();
            this.AdvNhanVien = new ADVObjects();
            this.Label10 = new Label();
            this.TxtDienGiai2 = new TextBox();
            this.Label9 = new Label();
            this.TxtCanCu = new TextBox();
            this.Label1 = new Label();
            this.TxtRefNo = new TextBox();
            this.Label8 = new Label();
            this.TxtRe = new TextBox();
            this.CboMauBaoCao = new ComboBox();
            this.Label7 = new Label();
            this.Label6 = new Label();
            this.TxtFax = new TextBox();
            this.Label5 = new Label();
            this.TxtDienThoai = new TextBox();
            this.Label4 = new Label();
            this.TxtNguoiNhan = new TextBox();
            this.Label16 = new Label();
            this.AdvKhachHang = new ADVObjects();
            this.TxtTuNgay = new DateTimePicker();
            this.Label13 = new Label();
            this.Label2 = new Label();
            this.Label3 = new Label();
            this.AdvTaiKhoan = new ADVAccount();
            this.CmdCancel = new Button();
            this.CmdOK = new Button();
            this.GroupBox1.SuspendLayout();
            this.SuspendLayout();
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.TxtDenNgay);
            this.GroupBox1.Controls.Add(this.Label11);
            this.GroupBox1.Controls.Add(this.AdvNhanVien);
            this.GroupBox1.Controls.Add(this.Label10);
            this.GroupBox1.Controls.Add(this.TxtDienGiai2);
            this.GroupBox1.Controls.Add(this.Label9);
            this.GroupBox1.Controls.Add(this.TxtCanCu);
            this.GroupBox1.Controls.Add(this.Label1);
            this.GroupBox1.Controls.Add(this.TxtRefNo);
            this.GroupBox1.Controls.Add(this.Label8);
            this.GroupBox1.Controls.Add(this.TxtRe);
            this.GroupBox1.Controls.Add(this.CboMauBaoCao);
            this.GroupBox1.Controls.Add(this.Label7);
            this.GroupBox1.Controls.Add(this.Label6);
            this.GroupBox1.Controls.Add(this.TxtFax);
            this.GroupBox1.Controls.Add(this.Label5);
            this.GroupBox1.Controls.Add(this.TxtDienThoai);
            this.GroupBox1.Controls.Add(this.Label4);
            this.GroupBox1.Controls.Add(this.TxtNguoiNhan);
            this.GroupBox1.Controls.Add(this.Label16);
            this.GroupBox1.Controls.Add(this.AdvKhachHang);
            this.GroupBox1.Controls.Add(this.TxtTuNgay);
            this.GroupBox1.Controls.Add(this.Label13);
            this.GroupBox1.Controls.Add(this.Label2);
            this.GroupBox1.Controls.Add(this.Label3);
            this.GroupBox1.Controls.Add(this.AdvTaiKhoan);
            Point point = new Point(4, 5);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            Size size = new Size(0x2e2, 0x17f);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "T\x00f9y chọn";
            this.TxtDenNgay.Format = DateTimePickerFormat.Custom;
            point = new Point(0x98, 0x2b);
            this.TxtDenNgay.Location = point;
            this.TxtDenNgay.Name = "TxtDenNgay";
            size = new Size(0x53, 20);
            this.TxtDenNgay.Size = size;
            this.TxtDenNgay.TabIndex = 0x5c;
            this.Label11.AutoEllipsis = true;
            this.Label11.AutoSize = true;
            point = new Point(0x197, 0x94);
            this.Label11.Location = point;
            this.Label11.Name = "Label11";
            this.Label11.RightToLeft = RightToLeft.No;
            size = new Size(0x38, 13);
            this.Label11.Size = size;
            this.Label11.TabIndex = 0x5b;
            this.Label11.Text = "Nh\x00e2n vi\x00ean";
            this.Label11.TextAlign = ContentAlignment.TopRight;
            this.AdvNhanVien.Conditions = "";
            this.AdvNhanVien.LoaiDoiTuong = modGeneral.TypeObjects.NhanVien;
            point = new Point(410, 0xa4);
            this.AdvNhanVien.Location = point;
            this.AdvNhanVien.Name = "AdvNhanVien";
            this.AdvNhanVien.ReadOnly = false;
            size = new Size(0x133, 20);
            this.AdvNhanVien.Size = size;
            this.AdvNhanVien.TabIndex = 90;
            this.AdvNhanVien.UpperText = true;
            this.AdvNhanVien.Value = "";
            this.AdvNhanVien.WidthCode = 80;
            this.Label10.AutoEllipsis = true;
            this.Label10.AutoSize = true;
            point = new Point(0x1c, 0x12f);
            this.Label10.Location = point;
            this.Label10.Name = "Label10";
            this.Label10.RightToLeft = RightToLeft.No;
            size = new Size(0x39, 13);
            this.Label10.Size = size;
            this.Label10.TabIndex = 0x59;
            this.Label10.Text = "Diễn giải 2";
            this.Label10.TextAlign = ContentAlignment.TopRight;
            point = new Point(30, 0x13f);
            this.TxtDienGiai2.Location = point;
            this.TxtDienGiai2.Multiline = true;
            this.TxtDienGiai2.Name = "TxtDienGiai2";
            size = new Size(0x2b0, 0x37);
            this.TxtDienGiai2.Size = size;
            this.TxtDienGiai2.TabIndex = 0x58;
            this.Label9.AutoEllipsis = true;
            this.Label9.AutoSize = true;
            point = new Point(0x1d, 0xe3);
            this.Label9.Location = point;
            this.Label9.Name = "Label9";
            this.Label9.RightToLeft = RightToLeft.No;
            size = new Size(0x39, 13);
            this.Label9.Size = size;
            this.Label9.TabIndex = 0x57;
            this.Label9.Text = "Diễn giải 1";
            this.Label9.TextAlign = ContentAlignment.TopRight;
            point = new Point(0x20, 0xf3);
            this.TxtCanCu.Location = point;
            this.TxtCanCu.Multiline = true;
            this.TxtCanCu.Name = "TxtCanCu";
            size = new Size(0x2b0, 0x35);
            this.TxtCanCu.Size = size;
            this.TxtCanCu.TabIndex = 0x56;
            this.Label1.AutoEllipsis = true;
            this.Label1.AutoSize = true;
            point = new Point(0x198, 0x6c);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            this.Label1.RightToLeft = RightToLeft.No;
            size = new Size(0x2c, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x55;
            this.Label1.Text = "Ref. No";
            this.Label1.TextAlign = ContentAlignment.TopRight;
            point = new Point(0x19b, 0x7c);
            this.TxtRefNo.Location = point;
            this.TxtRefNo.Name = "TxtRefNo";
            size = new Size(0x133, 20);
            this.TxtRefNo.Size = size;
            this.TxtRefNo.TabIndex = 0x54;
            this.Label8.AutoEllipsis = true;
            this.Label8.AutoSize = true;
            point = new Point(0x197, 0x44);
            this.Label8.Location = point;
            this.Label8.Name = "Label8";
            this.Label8.RightToLeft = RightToLeft.No;
            size = new Size(0x15, 13);
            this.Label8.Size = size;
            this.Label8.TabIndex = 0x53;
            this.Label8.Text = "Re";
            this.Label8.TextAlign = ContentAlignment.TopRight;
            point = new Point(0x19b, 0x54);
            this.TxtRe.Location = point;
            this.TxtRe.Name = "TxtRe";
            size = new Size(0x133, 20);
            this.TxtRe.Size = size;
            this.TxtRe.TabIndex = 0x52;
            this.CboMauBaoCao.FormattingEnabled = true;
            point = new Point(0x20, 0xcb);
            this.CboMauBaoCao.Location = point;
            this.CboMauBaoCao.Name = "CboMauBaoCao";
            size = new Size(0x133, 0x15);
            this.CboMauBaoCao.Size = size;
            this.CboMauBaoCao.TabIndex = 0x47;
            this.Label7.AutoSize = true;
            point = new Point(0x1d, 0xbb);
            this.Label7.Location = point;
            this.Label7.Name = "Label7";
            size = new Size(70, 13);
            this.Label7.Size = size;
            this.Label7.TabIndex = 0x51;
            this.Label7.Text = "Mẫu b\x00e1o c\x00e1o";
            this.Label6.AutoEllipsis = true;
            this.Label6.AutoSize = true;
            point = new Point(0xe3, 0x94);
            this.Label6.Location = point;
            this.Label6.Name = "Label6";
            this.Label6.RightToLeft = RightToLeft.No;
            size = new Size(0x18, 13);
            this.Label6.Size = size;
            this.Label6.TabIndex = 0x4e;
            this.Label6.Text = "Fax";
            this.Label6.TextAlign = ContentAlignment.TopRight;
            point = new Point(0xd9, 0xa4);
            this.TxtFax.Location = point;
            this.TxtFax.Name = "TxtFax";
            size = new Size(0x7a, 20);
            this.TxtFax.Size = size;
            this.TxtFax.TabIndex = 0x44;
            this.Label5.AutoEllipsis = true;
            this.Label5.AutoSize = true;
            point = new Point(0x20, 0x94);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            this.Label5.RightToLeft = RightToLeft.No;
            size = new Size(0x37, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 0x4c;
            this.Label5.Text = "Điện thoại";
            this.Label5.TextAlign = ContentAlignment.TopRight;
            point = new Point(0x20, 0xa4);
            this.TxtDienThoai.Location = point;
            this.TxtDienThoai.Name = "TxtDienThoai";
            size = new Size(0x7a, 20);
            this.TxtDienThoai.Size = size;
            this.TxtDienThoai.TabIndex = 0x43;
            this.Label4.AutoEllipsis = true;
            this.Label4.AutoSize = true;
            point = new Point(0x20, 0x6c);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            this.Label4.RightToLeft = RightToLeft.No;
            size = new Size(0x3e, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 0x4a;
            this.Label4.Text = "Người nhận";
            this.Label4.TextAlign = ContentAlignment.TopRight;
            point = new Point(0x20, 0x7c);
            this.TxtNguoiNhan.Location = point;
            this.TxtNguoiNhan.Name = "TxtNguoiNhan";
            size = new Size(0x133, 20);
            this.TxtNguoiNhan.Size = size;
            this.TxtNguoiNhan.TabIndex = 0x42;
            this.Label16.AutoEllipsis = true;
            this.Label16.AutoSize = true;
            point = new Point(0x1d, 0x44);
            this.Label16.Location = point;
            this.Label16.Name = "Label16";
            this.Label16.RightToLeft = RightToLeft.No;
            size = new Size(0x41, 13);
            this.Label16.Size = size;
            this.Label16.TabIndex = 0x47;
            this.Label16.Text = "Kh\x00e1ch h\x00e0ng";
            this.Label16.TextAlign = ContentAlignment.TopRight;
            this.AdvKhachHang.Conditions = "";
            this.AdvKhachHang.LoaiDoiTuong = modGeneral.TypeObjects.KhachHang;
            point = new Point(0x20, 0x54);
            this.AdvKhachHang.Location = point;
            this.AdvKhachHang.Name = "AdvKhachHang";
            this.AdvKhachHang.ReadOnly = false;
            size = new Size(0x133, 20);
            this.AdvKhachHang.Size = size;
            this.AdvKhachHang.TabIndex = 0x41;
            this.AdvKhachHang.UpperText = true;
            this.AdvKhachHang.Value = "";
            this.AdvKhachHang.WidthCode = 80;
            this.TxtTuNgay.Format = DateTimePickerFormat.Short;
            point = new Point(0x20, 0x2c);
            this.TxtTuNgay.Location = point;
            this.TxtTuNgay.Name = "TxtTuNgay";
            size = new Size(0x56, 20);
            this.TxtTuNgay.Size = size;
            this.TxtTuNgay.TabIndex = 0x3f;
            DateTime time = new DateTime(0x7d7, 7, 1, 0, 0, 0, 0);
            this.TxtTuNgay.Value = time;
            this.Label13.AutoSize = true;
            point = new Point(0x1d, 0x1b);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x2e, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 0x41;
            this.Label13.Text = "Từ ng\x00e0y";
            this.Label2.AutoSize = true;
            point = new Point(0x198, 0x1b);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x43, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x44;
            this.Label2.Text = "Số t\x00e0i khoản";
            this.Label3.AutoSize = true;
            point = new Point(0x95, 0x1c);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x35, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x42;
            this.Label3.Text = "Đến ng\x00e0y";
            this.AdvTaiKhoan.Conditions = "";
            this.AdvTaiKhoan.DefaultValue = "";
            this.AdvTaiKhoan.FieldNameFilter = "Left(SoTaiKhoan,3)";
            this.AdvTaiKhoan.KeyFilter = "131|141|338";
            point = new Point(0x19b, 0x2c);
            this.AdvTaiKhoan.Location = point;
            Padding padding = new Padding(0);
            this.AdvTaiKhoan.Margin = padding;
            this.AdvTaiKhoan.Name = "AdvTaiKhoan";
            this.AdvTaiKhoan.OnlyDigit = false;
            this.AdvTaiKhoan.ReadOnly = false;
            size = new Size(0x133, 20);
            this.AdvTaiKhoan.Size = size;
            this.AdvTaiKhoan.TabIndex = 0x49;
            this.AdvTaiKhoan.UpperText = true;
            this.AdvTaiKhoan.Value = "";
            this.AdvTaiKhoan.WithCode = 80;
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            this.CmdCancel.Image = (Image) manager.GetObject("CmdCancel.Image");
            this.CmdCancel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x297, 0x18a);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            size = new Size(0x4f, 0x18);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 0x3d;
            this.CmdCancel.Text = "&Tho\x00e1t";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.CmdOK.Image = (Image) manager.GetObject("CmdOK.Image");
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(580, 0x18a);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x4e, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 60;
            this.CmdOK.Text = "&Chọn";
            this.CmdOK.UseVisualStyleBackColor = true;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x2f2, 0x1aa);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.CmdCancel);
            this.Controls.Add(this.CmdOK);
            this.Controls.Add(this.GroupBox1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_RptDoiChieuCongNoPhaiThu";
            this.ShowIcon = false;
            this.ShowInTaskbar = false;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "BC-KT01";
            this.Text = "DOI CHIEU CONG NO";
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.ResumeLayout(false);
        }

        public void PrintReportMau1()
        {
            clsDMTaiKhoan khoan = new clsDMTaiKhoan();
            clsDMDoiTuong tuong = new clsDMDoiTuong();
            khoan.Load(this.AdvTaiKhoan.Value);
            tuong.Load(this.AdvKhachHang.Value);
            this.Cursor = Cursors.WaitCursor;
            DataTable dataDoiChieuTongHop = this.GetDataDoiChieuTongHop();
            DataTable dataPhanTich = this.GetDataPhanTich();
            if (dataDoiChieuTongHop.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else
            {
                RptDoiChieuCongNoMau1 mau = new RptDoiChieuCongNoMau1();
                try
                {
                    mau.SetDataSource(dataDoiChieuTongHop);
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        mau.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                    }
                    else
                    {
                        mau.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                    }
                    mau.SetParameterValue(1, modGeneral.Tranlated("", "") + modGeneral.H_ADDRESS.ToUpper());
                    mau.SetParameterValue(2, modGeneral.Tranlated("T\x00e0i khoản", "") + ": " + modGeneral.H_ACOUNTTNUMBERVND + " " + modGeneral.Tranlated("Tại", "") + ":" + modGeneral.H_BANK);
                    mau.SetParameterValue(3, modGeneral.Tranlated("Điện thoại", "").ToUpper() + ": " + modGeneral.H_TELEPHONE.ToUpper());
                    mau.SetParameterValue(4, modGeneral.Tranlated("Fax", "").ToUpper() + ": " + modGeneral.H_FAX);
                    mau.SetParameterValue(5, modGeneral.Tranlated("BẢNG ĐỐI CHIẾU C\x00d4NG NỢ", ""));
                    mau.SetParameterValue(6, modGeneral.Tranlated("Từ ng\x00e0y", "") + ": " + this.TxtTuNgay.Text + " " + modGeneral.Tranlated("đến ng\x00e0y", "") + ": " + this.TxtDenNgay.Text);
                    mau.SetParameterValue(7, modGeneral.Tranlated("STT", ""));
                    mau.SetParameterValue(8, modGeneral.Tranlated("Kh\x00e1ch h\x00e0ng ", "") + ": ");
                    mau.SetParameterValue(9, modGeneral.Tranlated("Ng\x00e0y", "").ToUpper());
                    mau.SetParameterValue(10, modGeneral.Tranlated("Chứng từ", "").ToUpper());
                    mau.SetParameterValue(11, modGeneral.Tranlated("Diễn giải", "").ToUpper());
                    mau.SetParameterValue(12, modGeneral.Tranlated("Ph\x00e1t sinh nợ", "").ToUpper());
                    mau.SetParameterValue(13, modGeneral.Tranlated("Thanh to\x00e1n", "").ToUpper());
                    mau.SetParameterValue(14, modGeneral.Tranlated("Cộng ph\x00e1t sinh th\x00e1ng", ""));
                    mau.SetParameterValue(15, modGeneral.Tranlated("H\x00f3a đơn", "").ToUpper());
                    mau.SetParameterValue(0x10, Interaction.IIf(modGeneral.H_LANGUAGE == "VIET", tuong.TenViet, tuong.TenAnh).ToString().ToUpper());
                    mau.SetParameterValue(0x11, modGeneral.Tranlated("Số dư đầu ng\x00e0y ", "") + this.TxtTuNgay.Text);
                    mau.SetParameterValue(0x12, modGeneral.Tranlated("Số dư cuối ng\x00e0y ", ""));
                    mau.SetParameterValue(0x13, modGeneral.Tranlated("Ng\x00e0y .......... th\x00e1ng .......... năm ....................", ""));
                    mau.SetParameterValue(20, modGeneral.Tranlated("Lập biểu", ""));
                    mau.SetParameterValue(0x15, modGeneral.Tranlated("X\x00e1c nhận của kh\x00e1ch h\x00e0ng", ""));
                    mau.SetParameterValue(0x16, modGeneral.Tranlated("Số t\x00e0i khoản c\x00f4ng ty ch\x00fang t\x00f4i như sau", "") + ":");
                    mau.SetParameterValue(0x17, LVYModule.Date2Char(this.TxtDenNgay.Text));
                    mau.SetParameterValue(0x18, modGeneral.Tranlated("mẫu số 1", ""));
                    mau.SetParameterValue(0x19, modGeneral.Tranlated("Người nhận", "") + ": " + this.TxtNguoiNhan.Text);
                    mau.SetParameterValue(0x1a, modGeneral.Tranlated("Fax", "") + ": " + this.TxtFax.Text);
                    mau.SetParameterValue(0x1b, modGeneral.Tranlated("Điện thoại", "") + ": " + this.TxtDienThoai.Text);
                    mau.SetParameterValue(0x1c, modGeneral.Tranlated("Ph\x00e2n t\x00edch c\x00f4ng nợ đến ng\x00e0y", "").ToUpper() + " " + this.TxtDenNgay.Text + ":");
                    mau.SetParameterValue(0x1d, modGeneral.Tranlated("Thời hạn 1-30 ng\x00e0y", ""));
                    mau.SetParameterValue(30, modGeneral.Tranlated("Thời hạn 31-60 ng\x00e0y", ""));
                    mau.SetParameterValue(0x1f, modGeneral.Tranlated("Thời hạn 61-90 ng\x00e0y", ""));
                    mau.SetParameterValue(0x20, modGeneral.Tranlated("Thời hạn tr\x00ean 91 ng\x00e0y", ""));
                    mau.SetParameterValue(0x21, RuntimeHelpers.GetObjectValue(dataPhanTich.Rows[0][0]));
                    mau.SetParameterValue(0x22, RuntimeHelpers.GetObjectValue(dataPhanTich.Rows[0][1]));
                    mau.SetParameterValue(0x23, RuntimeHelpers.GetObjectValue(dataPhanTich.Rows[0][2]));
                    mau.SetParameterValue(0x24, RuntimeHelpers.GetObjectValue(dataPhanTich.Rows[0][3]));
                    mau.SetParameterValue(0x25, modGeneral.H_ACCOUNTNAME);
                    mau.SetParameterValue(0x26, modGeneral.Tranlated("T\x00e0i khoản số", "") + ": " + modGeneral.H_ACOUNTTNUMBERVND);
                    mau.SetParameterValue(0x27, modGeneral.Tranlated("Tại", "") + ": " + modGeneral.H_BANK);
                    mau.SetParameterValue(40, modGeneral.Tranlated("Hạn thanh to\x00e1n", "") + ": " + Conversions.ToString(tuong.HanThanhToan) + " " + modGeneral.Tranlated("ng\x00e0y", ""));
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = mau;
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    this.Cursor = Cursors.Default;
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        public void PrintReportMau2()
        {
            clsDMTaiKhoan khoan = new clsDMTaiKhoan();
            clsDMDoiTuong tuong = new clsDMDoiTuong();
            khoan.Load(this.AdvTaiKhoan.Value);
            tuong.Load(this.AdvKhachHang.Value);
            this.Cursor = Cursors.WaitCursor;
            DataTable dataDoiChieu = this.GetDataDoiChieu();
            DataTable dataPhanTich = this.GetDataPhanTich();
            if (dataDoiChieu.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else
            {
                double num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataDoiChieu.Rows[0]["SoDuNoDauKy"]), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataDoiChieu.Rows[0]["TongSoPhatSinhNo"]), 0, modGeneral.TypeOfValue.Nothing));
                num -= Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataDoiChieu.Rows[0]["SoDuCoDauKy"]), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataDoiChieu.Rows[0]["TongSoPhatSinhCo"]), 0, modGeneral.TypeOfValue.Nothing));
                RptDoiChieuCongNoPhaiThu thu = new RptDoiChieuCongNoPhaiThu();
                try
                {
                    thu.SetDataSource(dataDoiChieu);
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        thu.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                    }
                    else
                    {
                        thu.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                    }
                    thu.SetParameterValue(1, modGeneral.Tranlated("", "") + modGeneral.H_ADDRESS);
                    thu.SetParameterValue(2, modGeneral.Tranlated("T\x00e0i khoản", "") + ": " + modGeneral.H_ACOUNTTNUMBERVND + " " + modGeneral.Tranlated("Tại", "") + ":" + modGeneral.H_BANK);
                    thu.SetParameterValue(3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE);
                    thu.SetParameterValue(4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX);
                    thu.SetParameterValue(5, modGeneral.Tranlated("BẢNG ĐỐI CHIẾU C\x00d4NG NỢ", ""));
                    thu.SetParameterValue(6, modGeneral.Tranlated("Từ ng\x00e0y", "") + ":" + this.TxtTuNgay.Text + " " + modGeneral.Tranlated("đến ng\x00e0y", "") + " : " + this.TxtDenNgay.Text);
                    thu.SetParameterValue(7, modGeneral.Tranlated("T\x00e0i khoản", "") + ": ");
                    thu.SetParameterValue(8, modGeneral.Tranlated("Kh\x00e1ch h\x00e0ng ", "") + ": ");
                    thu.SetParameterValue(9, modGeneral.Tranlated("Ng\x00e0y", "").ToUpper());
                    thu.SetParameterValue(10, modGeneral.Tranlated("Chứng từ", "").ToUpper());
                    thu.SetParameterValue(11, modGeneral.Tranlated("T\x00ean h\x00e0ng", "").ToUpper());
                    thu.SetParameterValue(12, modGeneral.Tranlated("ĐVT", ""));
                    thu.SetParameterValue(13, modGeneral.Tranlated("Số lượng", "").ToUpper());
                    thu.SetParameterValue(14, modGeneral.Tranlated("Đơn gi\x00e1", "").ToUpper());
                    thu.SetParameterValue(15, modGeneral.Tranlated("Tiền h\x00e0ng", "").ToUpper());
                    thu.SetParameterValue(0x10, modGeneral.Tranlated("Chiết khấu", "").ToUpper());
                    thu.SetParameterValue(0x11, modGeneral.Tranlated("Thuế GTGT", "").ToUpper());
                    thu.SetParameterValue(0x12, modGeneral.Tranlated("Ph\x00e1t sinh nợ", "").ToUpper());
                    thu.SetParameterValue(0x13, modGeneral.Tranlated("Thanh to\x00e1n", "").ToUpper());
                    thu.SetParameterValue(20, modGeneral.Tranlated("Ph\x00e1t sinh nợ", ""));
                    thu.SetParameterValue(0x15, modGeneral.Tranlated("Ph\x00e1t sinh c\x00f3", ""));
                    thu.SetParameterValue(0x16, modGeneral.Tranlated("Ng\x00e0y .......... th\x00e1ng .......... năm ....................", ""));
                    thu.SetParameterValue(0x17, modGeneral.Tranlated("Lập biểu", ""));
                    thu.SetParameterValue(0x18, modGeneral.Tranlated("Cộng ph\x00e1t sinh th\x00e1ng", "") + " ");
                    thu.SetParameterValue(0x19, modGeneral.Tranlated("X\x00e1c nhận của kh\x00e1ch h\x00e0ng", ""));
                    thu.SetParameterValue(0x1a, LVYModule.Date2Char(this.TxtDenNgay.Text));
                    thu.SetParameterValue(0x1b, Interaction.IIf(modGeneral.H_LANGUAGE == "VIET", tuong.TenViet, tuong.TenAnh).ToString().ToUpper());
                    thu.SetParameterValue(0x1c, modGeneral.Tranlated("Số dư đầu ng\x00e0y ", "") + this.TxtTuNgay.Text);
                    thu.SetParameterValue(0x1d, modGeneral.Tranlated("Số dư cuối ng\x00e0y ", ""));
                    thu.SetParameterValue(30, modGeneral.Tranlated("Số t\x00e0i khoản c\x00f4ng ty ch\x00fang t\x00f4i như sau", "") + ":");
                    thu.SetParameterValue(0x1f, modGeneral.Tranlated("H\x00f3a đơn", "").ToUpper());
                    thu.SetParameterValue(0x20, modGeneral.Tranlated("mẫu số 2", ""));
                    thu.SetParameterValue(0x21, modGeneral.Tranlated("Người nhận", "") + ": " + this.TxtNguoiNhan.Text);
                    thu.SetParameterValue(0x22, modGeneral.Tranlated("Fax", "") + ": " + this.TxtFax.Text);
                    thu.SetParameterValue(0x23, modGeneral.Tranlated("Điện thoại", "") + ": " + this.TxtDienThoai.Text);
                    thu.SetParameterValue(0x24, modGeneral.Tranlated("Ph\x00e2n t\x00edch c\x00f4ng nợ đến ng\x00e0y", "").ToUpper() + " " + this.TxtDenNgay.Text + ":");
                    thu.SetParameterValue(0x25, modGeneral.Tranlated("Thời hạn 1-30 ng\x00e0y", ""));
                    thu.SetParameterValue(0x26, modGeneral.Tranlated("Thời hạn 31-60 ng\x00e0y", ""));
                    thu.SetParameterValue(0x27, modGeneral.Tranlated("Thời hạn 61-90 ng\x00e0y", ""));
                    thu.SetParameterValue(40, modGeneral.Tranlated("Thời hạn tr\x00ean 91 ng\x00e0y", ""));
                    thu.SetParameterValue(0x29, RuntimeHelpers.GetObjectValue(dataPhanTich.Rows[0][0]));
                    thu.SetParameterValue(0x2a, RuntimeHelpers.GetObjectValue(dataPhanTich.Rows[0][1]));
                    thu.SetParameterValue(0x2b, RuntimeHelpers.GetObjectValue(dataPhanTich.Rows[0][2]));
                    thu.SetParameterValue(0x2c, RuntimeHelpers.GetObjectValue(dataPhanTich.Rows[0][3]));
                    thu.SetParameterValue(0x2d, modGeneral.H_ACCOUNTNAME);
                    thu.SetParameterValue(0x2e, modGeneral.Tranlated("T\x00e0i khoản số", "") + ": " + modGeneral.H_ACOUNTTNUMBERVND);
                    thu.SetParameterValue(0x2f, modGeneral.Tranlated("Tại", "") + ": " + modGeneral.H_BANK);
                    thu.SetParameterValue(0x30, modGeneral.Tranlated("Hạn thanh to\x00e1n", "") + ": " + Conversions.ToString(tuong.HanThanhToan) + " " + modGeneral.Tranlated("ng\x00e0y", ""));
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = thu;
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    this.Cursor = Cursors.Default;
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        public void PrintReportMau3()
        {
            double num = 0.0;
            clsDMTaiKhoan khoan = new clsDMTaiKhoan();
            clsDMDoiTuong tuong = new clsDMDoiTuong();
            khoan.Load(this.AdvTaiKhoan.Value);
            tuong.Load(this.AdvKhachHang.Value);
            this.Cursor = Cursors.WaitCursor;
            DataTable dataDoiChieu = this.GetDataDoiChieu();
            DataTable dataPhanTich = this.GetDataPhanTich();
            if (dataDoiChieu.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else
            {
                RptDoiChieuCongNoMau3 mau = new RptDoiChieuCongNoMau3();
                try
                {
                    num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataDoiChieu.Rows[0]["SoDuNoDauKy"]), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataDoiChieu.Rows[0]["TongSoPhatSinhNo"]), 0, modGeneral.TypeOfValue.Nothing));
                    num -= Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataDoiChieu.Rows[0]["SoDuCoDauKy"]), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataDoiChieu.Rows[0]["TongSoPhatSinhCo"]), 0, modGeneral.TypeOfValue.Nothing));
                    mau.SetDataSource(dataDoiChieu);
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        mau.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                    }
                    else
                    {
                        mau.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                    }
                    mau.SetParameterValue(1, modGeneral.Tranlated("Địa chỉ", "").ToUpper() + modGeneral.H_ADDRESS.ToUpper());
                    mau.SetParameterValue(2, modGeneral.Tranlated("T\x00e0i khoản", "") + ": " + modGeneral.H_ACOUNTTNUMBERVND + " " + modGeneral.Tranlated("Tại", "") + ":" + modGeneral.H_BANK);
                    mau.SetParameterValue(3, modGeneral.Tranlated("Điện thoại", "").ToUpper() + ": " + modGeneral.H_TELEPHONE);
                    mau.SetParameterValue(4, modGeneral.Tranlated("Fax", "").ToUpper() + ": " + modGeneral.H_FAX);
                    mau.SetParameterValue(5, modGeneral.Tranlated("BẢNG ĐỐI CHIẾU C\x00d4NG NỢ", ""));
                    mau.SetParameterValue(6, modGeneral.Tranlated("Từ ng\x00e0y", "") + ":" + this.TxtTuNgay.Text + " " + modGeneral.Tranlated("đến ng\x00e0y", "") + " : " + this.TxtDenNgay.Text);
                    mau.SetParameterValue(7, modGeneral.Tranlated("T\x00e0i khoản", "") + ": ");
                    mau.SetParameterValue(8, modGeneral.Tranlated("Kh\x00e1ch h\x00e0ng ", "") + ": ");
                    mau.SetParameterValue(9, modGeneral.Tranlated("Ng\x00e0y", "").ToUpper());
                    mau.SetParameterValue(10, modGeneral.Tranlated("Số chứng từ", "").ToUpper());
                    mau.SetParameterValue(11, modGeneral.Tranlated("H\x00e0ng h\x00f3a", "").ToUpper());
                    mau.SetParameterValue(12, modGeneral.Tranlated("ĐVT", ""));
                    mau.SetParameterValue(13, modGeneral.Tranlated("SL", "").ToUpper());
                    mau.SetParameterValue(14, modGeneral.Tranlated("Đơn gi\x00e1", "").ToUpper());
                    mau.SetParameterValue(15, modGeneral.Tranlated("Ph\x00e1t sinh nợ", "").ToUpper());
                    mau.SetParameterValue(0x10, modGeneral.Tranlated("Thanh to\x00e1n", "").ToUpper());
                    mau.SetParameterValue(0x11, modGeneral.Tranlated("Người nhận", "") + ": " + this.TxtNguoiNhan.Text);
                    mau.SetParameterValue(0x12, modGeneral.Tranlated("Fax", "") + ": " + this.TxtFax.Text);
                    mau.SetParameterValue(0x13, modGeneral.Tranlated("Điện thoại", "") + ": " + this.TxtDienThoai.Text);
                    mau.SetParameterValue(20, modGeneral.Tranlated("Ph\x00e1t sinh nợ", "").ToUpper());
                    mau.SetParameterValue(0x15, modGeneral.Tranlated("Ph\x00e1t sinh c\x00f3", "").ToUpper());
                    mau.SetParameterValue(0x16, modGeneral.Tranlated("Ng\x00e0y .......... th\x00e1ng .......... năm ....................", ""));
                    mau.SetParameterValue(0x17, modGeneral.Tranlated("Lập biểu", ""));
                    mau.SetParameterValue(0x18, modGeneral.Tranlated("Cộng ph\x00e1t sinh th\x00e1ng", ""));
                    mau.SetParameterValue(0x19, modGeneral.Tranlated("X\x00e1c nhận của kh\x00e1ch h\x00e0ng", ""));
                    mau.SetParameterValue(0x1a, Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(khoan.SoTaiKhoan.Trim() + ". ", Interaction.IIf(modGeneral.H_LANGUAGE == "VIET", khoan.TenViet, khoan.TenAnh)));
                    mau.SetParameterValue(0x1b, Interaction.IIf(modGeneral.H_LANGUAGE == "VIET", tuong.TenViet, tuong.TenAnh).ToString().ToUpper());
                    mau.SetParameterValue(0x1c, modGeneral.Tranlated("Số dư đầu ng\x00e0y ", "") + this.TxtTuNgay.Text);
                    mau.SetParameterValue(0x1d, modGeneral.Tranlated("Số dư cuối ng\x00e0y", ""));
                    mau.SetParameterValue(30, modGeneral.Tranlated("Số t\x00e0i khoản c\x00f4ng ty ch\x00fang t\x00f4i như sau", "") + ":");
                    mau.SetParameterValue(0x1f, modGeneral.Tranlated("H\x00f3a đơn", "").ToUpper());
                    mau.SetParameterValue(0x20, modGeneral.Tranlated("mẫu số 3", ""));
                    mau.SetParameterValue(0x21, modGeneral.Tranlated("Ph\x00e2n t\x00edch c\x00f4ng nợ đến ng\x00e0y", "").ToUpper() + " " + this.TxtDenNgay.Text + ":");
                    mau.SetParameterValue(0x22, modGeneral.Tranlated("Thời hạn 1-30 ng\x00e0y", ""));
                    mau.SetParameterValue(0x23, modGeneral.Tranlated("Thời hạn 31-60 ng\x00e0y", ""));
                    mau.SetParameterValue(0x24, modGeneral.Tranlated("Thời hạn 61-90 ng\x00e0y", ""));
                    mau.SetParameterValue(0x25, modGeneral.Tranlated("Thời hạn tr\x00ean 91 ng\x00e0y", ""));
                    mau.SetParameterValue(0x26, RuntimeHelpers.GetObjectValue(dataPhanTich.Rows[0][0]));
                    mau.SetParameterValue(0x27, RuntimeHelpers.GetObjectValue(dataPhanTich.Rows[0][1]));
                    mau.SetParameterValue(40, RuntimeHelpers.GetObjectValue(dataPhanTich.Rows[0][2]));
                    mau.SetParameterValue(0x29, RuntimeHelpers.GetObjectValue(dataPhanTich.Rows[0][3]));
                    mau.SetParameterValue(0x2a, modGeneral.H_ACCOUNTNAME);
                    mau.SetParameterValue(0x2b, modGeneral.Tranlated("T\x00e0i khoản số", "") + ": " + modGeneral.H_ACOUNTTNUMBERVND);
                    mau.SetParameterValue(0x2c, modGeneral.Tranlated("Tại", "") + ": " + modGeneral.H_BANK);
                    mau.SetParameterValue(0x2d, modGeneral.Tranlated("Hạn thanh to\x00e1n", "") + ": " + Conversions.ToString(tuong.HanThanhToan) + " " + modGeneral.Tranlated("ng\x00e0y", ""));
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = mau;
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    this.Cursor = Cursors.Default;
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        public void PrintReportMau4()
        {
            double expression = 0.0;
            clsDMTaiKhoan khoan = new clsDMTaiKhoan();
            clsDMDoiTuong tuong = new clsDMDoiTuong();
            khoan.Load(this.AdvTaiKhoan.Value);
            tuong.Load(this.AdvKhachHang.Value);
            this.Cursor = Cursors.WaitCursor;
            DataTable dataDoiChieu = this.GetDataDoiChieu();
            expression = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataDoiChieu.Rows[0]["SoDuNoDauKy"]), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataDoiChieu.Rows[0]["TongSoPhatSinhNo"]), 0, modGeneral.TypeOfValue.Nothing));
            expression -= Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataDoiChieu.Rows[0]["SoDuCoDauKy"]), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataDoiChieu.Rows[0]["TongSoPhatSinhCo"]), 0, modGeneral.TypeOfValue.Nothing));
            string val = ("C\x00f4ng ty " + this.AdvKhachHang.TxtName.Text.Trim() + " ") + modGeneral.Tranlated("x\x00e1c nhận phải trả cho", "") + modGeneral.H_COMPANYNAMEVIET.Trim() + " ";
            val = (val + modGeneral.Tranlated("đến ng\x00e0y", "") + " " + this.TxtDenNgay.Text + " " + modGeneral.Tranlated("số tiền l\x00e0", "")) + ": " + Strings.Format(expression, "##,###,###") + " đồng";
            if (dataDoiChieu.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else
            {
                RptDoiChieuCongNoMau4 mau = new RptDoiChieuCongNoMau4();
                try
                {
                    mau.SetDataSource(dataDoiChieu);
                    mau.Subreports[0].SetDataSource(modGeneral.H_DATACOMPANY);
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        mau.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                    }
                    else
                    {
                        mau.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                    }
                    mau.SetParameterValue(1, "Add: " + modGeneral.H_ADDRESSANH);
                    mau.SetParameterValue(2, modGeneral.Tranlated("T\x00e0i khoản", "") + ": " + modGeneral.H_ACOUNTTNUMBERVND + " " + modGeneral.Tranlated("Tại", "") + ":" + modGeneral.H_BANK);
                    mau.SetParameterValue(3, "Tel: " + modGeneral.H_TELEPHONE + "  Fax: " + modGeneral.H_FAX + "  Hotline" + modGeneral.H_HOTLINE);
                    mau.SetParameterValue(4, "Email: " + modGeneral.H_EMAIL + "        Website: " + modGeneral.H_WEBSITE);
                    mau.SetParameterValue(5, modGeneral.Tranlated("BẢNG ĐỐI CHIẾU C\x00d4NG NỢ", ""));
                    mau.SetParameterValue(6, modGeneral.Tranlated("Từ ng\x00e0y", "") + ":" + this.TxtTuNgay.Text + " " + modGeneral.Tranlated("đến ng\x00e0y", "") + " : " + this.TxtDenNgay.Text);
                    mau.SetParameterValue(7, modGeneral.Tranlated("T\x00e0i khoản", "") + ": ");
                    mau.SetParameterValue(8, modGeneral.Tranlated("Kh\x00e1ch h\x00e0ng ", "") + ": ");
                    mau.SetParameterValue(9, modGeneral.Tranlated("Ng\x00e0y giao", ""));
                    mau.SetParameterValue(10, modGeneral.Tranlated("Phiếu xuất h\x00e0ng", ""));
                    mau.SetParameterValue(11, modGeneral.Tranlated("H\x00e0ng h\x00f3a", ""));
                    mau.SetParameterValue(12, modGeneral.Tranlated("SL", ""));
                    mau.SetParameterValue(13, modGeneral.Tranlated("Tỷ gi\x00e1", ""));
                    mau.SetParameterValue(14, modGeneral.Tranlated("Tiền h\x00e0ng", ""));
                    mau.SetParameterValue(15, modGeneral.Tranlated("VAT", ""));
                    mau.SetParameterValue(0x10, modGeneral.Tranlated("Th\x00e0nh tiền", ""));
                    mau.SetParameterValue(0x11, this.TxtNguoiNhan.Text);
                    mau.SetParameterValue(0x12, this.TxtFax.Text);
                    mau.SetParameterValue(0x13, this.TxtDienThoai.Text);
                    mau.SetParameterValue(20, this.TxtCanCu.Text);
                    mau.SetParameterValue(0x15, modGeneral.Tranlated("Ph\x00e1t sinh c\x00f3", "").ToUpper());
                    mau.SetParameterValue(0x16, modGeneral.Tranlated("Ng\x00e0y .......... th\x00e1ng .......... năm ....................", ""));
                    mau.SetParameterValue(0x17, modGeneral.Tranlated("Lập biểu", ""));
                    mau.SetParameterValue(0x18, modGeneral.Tranlated("Cộng ph\x00e1t sinh th\x00e1ng", ""));
                    mau.SetParameterValue(0x19, modGeneral.Tranlated("X\x00e1c nhận của kh\x00e1ch h\x00e0ng", ""));
                    mau.SetParameterValue(0x1a, Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(khoan.SoTaiKhoan.Trim() + ". ", Interaction.IIf(modGeneral.H_LANGUAGE == "VIET", khoan.TenViet, khoan.TenAnh)));
                    mau.SetParameterValue(0x1b, Interaction.IIf(modGeneral.H_LANGUAGE == "VIET", tuong.TenViet, tuong.TenAnh).ToString().ToUpper());
                    mau.SetParameterValue(0x1c, modGeneral.Tranlated("Số dư đầu ng\x00e0y ", "") + this.TxtTuNgay.Text);
                    mau.SetParameterValue(0x1d, this.TxtDienGiai2.Text);
                    mau.SetParameterValue(30, "***" + modGeneral.Tranlated("Phương thức thanh to\x00e1n bằng tiền mặt hoặc chuyển khoản theo th\x00f4ng tin sau", "") + ":");
                    mau.SetParameterValue(0x1f, modGeneral.Tranlated("H\x00f3a đơn", ""));
                    mau.SetParameterValue(0x20, modGeneral.Tranlated("mẫu số 4", ""));
                    mau.SetParameterValue(0x21, modGeneral.Tranlated("Stt", "").ToUpper());
                    mau.SetParameterValue(0x22, modGeneral.Tranlated("Tổng c\x00f4ng nợ c\x00f2n phải thanh to\x00e1n", "").ToUpper());
                    mau.SetParameterValue(0x23, "- " + modGeneral.Tranlated("T\x00ean t\x00e0i khoản", "") + ": " + modGeneral.H_ACCOUNTNAME);
                    mau.SetParameterValue(0x24, "- " + modGeneral.Tranlated("Số t\x00e0i khoản", "") + ": " + modGeneral.H_ACOUNTTNUMBERVND);
                    mau.SetParameterValue(0x25, "- " + modGeneral.Tranlated("Tại", "") + ": " + modGeneral.H_BANK);
                    mau.SetParameterValue(0x26, "(" + modGeneral.Tranlated("Bằng chữ", "") + ": " + ReportModule.Number2Char(Conversions.ToString(expression), ".") + " đồng)");
                    mau.SetParameterValue(0x27, val);
                    mau.SetParameterValue(40, this.AdvNhanVien.TxtName.Text);
                    mau.SetParameterValue(0x29, this.TxtRe.Text);
                    mau.SetParameterValue(0x2a, this.TxtRefNo.Text);
                    mau.SetParameterValue(0x2b, this.TxtDenNgay.Text);
                    clsDMDoiTuong tuong2 = new clsDMDoiTuong();
                    tuong2.Load(this.AdvNhanVien.Value);
                    mau.SetParameterValue(0x2c, tuong2.DienThoai.Trim() + " - " + tuong2.DienThoaiDiDong);
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = mau;
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    this.Cursor = Cursors.Default;
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        private void TxtDenNgay_TextChanged(object sender, EventArgs e)
        {
            this.TxtCanCu.Text = "Căn cứ phiếu xuất h\x00e0ng v\x00e0 phương thức thanh to\x00e1n của Qu\x00fd c\x00f4ng ty. Đề nghị Qu\x00fd c\x00f4ng ty x\x00e1c nhận số tiền phải trả đến ng\x00e0y " + this.TxtDenNgay.Text + " v\x00e0 sắp xếp thanh to\x00e1n tiền h\x00e0ng cho c\x00f4ng ty ch\x00fang t\x00f4i trong thời gian sớm nhất với chi tiết như sau:";
            this.TxtDenNgay.Text = "Bảng đối chiếu c\x00f4ng nợ đến ng\x00e0y " + this.TxtDenNgay.Text;
        }

        private void TxtTuNgay_LostFocus(object sender, EventArgs e)
        {
            if (LVYModule.sRight(this.TxtTuNgay.Text, 7) != LVYModule.sRight(this.TxtDenNgay.Text, 7))
            {
                string str = DateTime.DaysInMonth(Conversions.ToInteger(LVYModule.sRight(this.TxtTuNgay.Text, 4)), Conversions.ToInteger(LVYModule.sMid(this.TxtTuNgay.Text, 4, 2))).ToString() + "/" + LVYModule.sRight(this.TxtTuNgay.Text, 7);
                this.TxtDenNgay.Text = str;
            }
        }

        internal virtual ADVObjects AdvKhachHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvKhachHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                ADVObjects.ValueChangedEventHandler handler = new ADVObjects.ValueChangedEventHandler(this.AdvKhachHang_ValueChanged);
                if (this._AdvKhachHang != null)
                {
                    this._AdvKhachHang.ValueChanged -= handler;
                }
                this._AdvKhachHang = value;
                if (this._AdvKhachHang != null)
                {
                    this._AdvKhachHang.ValueChanged += handler;
                }
            }
        }

        internal virtual ADVObjects AdvNhanVien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvNhanVien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvNhanVien = value;
            }
        }

        internal virtual ADVAccount AdvTaiKhoan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTaiKhoan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTaiKhoan = value;
            }
        }

        internal virtual ComboBox CboMauBaoCao
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboMauBaoCao;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboMauBaoCao = value;
            }
        }

        internal virtual Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdCancel_Click);
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click -= handler;
                }
                this._CmdCancel = value;
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click += handler;
                }
            }
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label10
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label10;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label10 = value;
            }
        }

        internal virtual Label Label11
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label11;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label11 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label16
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label16;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label16 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual Label Label6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label6 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        internal virtual Label Label8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label8 = value;
            }
        }

        internal virtual Label Label9
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label9;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label9 = value;
            }
        }

        internal virtual TextBox TxtCanCu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtCanCu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtCanCu = value;
            }
        }

        internal virtual DateTimePicker TxtDenNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDenNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDenNgay = value;
            }
        }

        internal virtual TextBox TxtDienGiai2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienGiai2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDienGiai2 = value;
            }
        }

        internal virtual TextBox TxtDienThoai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienThoai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDienThoai = value;
            }
        }

        internal virtual TextBox TxtFax
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtFax;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtFax = value;
            }
        }

        internal virtual TextBox TxtNguoiNhan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNguoiNhan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNguoiNhan = value;
            }
        }

        internal virtual TextBox TxtRe
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtRe;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtRe = value;
            }
        }

        internal virtual TextBox TxtRefNo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtRefNo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtRefNo = value;
            }
        }

        internal virtual DateTimePicker TxtTuNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTuNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtTuNgay_LostFocus);
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus -= handler;
                }
                this._TxtTuNgay = value;
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus += handler;
                }
            }
        }
    }
}

